package com.vogue.supplymall.order.domain.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

@SuppressWarnings("serial")
@Entity
@Table(name="refund_payment")
public class RefundPayment extends TendBaseEntity implements Serializable{
	/**
     * 退单id
     */
    private Long refundid;
    /**
     * 支付金额
     */
    private BigDecimal amount;
    /**
     * 支付类型 0：线下支付 1：线上支付
     */
    private Integer paymenttype;
    /**
     * 支付方式 0：线下 1：吾享 2：微信 3：支付宝 4：预付货款
     */
    private Integer paymentmode;
    /**
     * 支付日期
     */
    @DateTimeFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @Column(
            updatable = true,
            nullable = true,
            columnDefinition = "DATETIME NULL COMMENT'支付日期'"
    )
    private Date paymentdate;
    /**
     * 支付编号
     */
    private String paymentnumber;
    /**
     * 归档状态 0：未归档 1：已归档
     */
    private Boolean archivestatus;
	public Long getRefundid() {
		return refundid;
	}
	public void setRefundid(Long refundid) {
		this.refundid = refundid;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	public Integer getPaymenttype() {
		return paymenttype;
	}
	public void setPaymenttype(Integer paymenttype) {
		this.paymenttype = paymenttype;
	}
	public Integer getPaymentmode() {
		return paymentmode;
	}
	public void setPaymentmode(Integer paymentmode) {
		this.paymentmode = paymentmode;
	}
	public Date getPaymentdate() {
		return paymentdate;
	}
	public void setPaymentdate(Date paymentdate) {
		this.paymentdate = paymentdate;
	}
	public String getPaymentnumber() {
		return paymentnumber;
	}
	public void setPaymentnumber(String paymentnumber) {
		this.paymentnumber = paymentnumber;
	}
	public Boolean getArchivestatus() {
		return archivestatus;
	}
	public void setArchivestatus(Boolean archivestatus) {
		this.archivestatus = archivestatus;
	}
    
    
    
}
